package com.ruoyi.asset.extermination.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.asset.extermination.domain.Disinfection;
import com.ruoyi.asset.extermination.domain.bo.DisinfectionBo;
import com.ruoyi.asset.extermination.domain.bo.DisinfectionLocationTypeBo;
import com.ruoyi.asset.extermination.domain.bo.DisinfectionStatisticsBo;
import com.ruoyi.asset.extermination.domain.vo.DisinfectionVo;
import com.ruoyi.asset.extermination.domain.vo.ExterminationCommunityCountVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 四害消杀管养
 *
 * @author 12276
 */
public interface DisinfectionMapper extends BaseMapperPlus<DisinfectionMapper, Disinfection, DisinfectionVo> {

    /**
     * 删除四害消杀管养
     */
    int logicDeleteExtermination(@Param("idsSet") Set<Long> idsSet);

    /**
     * 分页查询四害消杀管养管理范围
     */
    Page<DisinfectionVo> selectExtermination(IPage<DisinfectionVo> page, @Param("searchBo") DisinfectionBo searchBo);

    /**
     * 查询四害消杀管养管理范围
     */
    List<DisinfectionVo> exportExtermination(@Param("searchBo") DisinfectionBo searchBo);

    /**
     * 查询统计
     *
     * @return
     */
    Integer selectCount();

    List<DisinfectionLocationTypeBo> selectCommunityCount(@Param("community") String community);

    Integer selectExterminationCountByCommunity(@Param("date") String date,@Param("community") String community);

    List<Integer> selectSumDate(@Param("date") String date);
}
